using System.Diagnostics.CodeAnalysis;

namespace Xunit.Sdk
{
	/// <summary>
	/// Exception thrown when a collection unexpectedly does not contain the expected value.
	/// </summary>
	[SuppressMessage("Microsoft.Design", "CA1032:ImplementStandardExceptionConstructors")]
	public class ContainsException : AssertActualExpectedException
	{
		/// <summary>
		/// Creates a new instance of the <see cref="ContainsException"/> class.
		/// </summary>
		/// <param name="expected">The expected object value</param>
		/// <param name="actual">The actual value</param>
		public ContainsException(object expected, object actual)
			: base(expected, actual, "Assert.Contains() Failure", "Not found", "In value") { }
	}
}